﻿Ext.define('app.prm.product.Index',
{
    extend: 'Ext.grid.Panel',
    border: true,
    title: '产品列表',
    viewConfig: {
        enableTextSelection: true //可以复制单元格文字
    },
    multiColumnSort: true,
    forceFit: true,
    initComponent: function () {
        var me = this;
        me.store = Ext.create("app.ux.PrmStore", { url: '/api/services/app/product/GetAll' });
        me.callParent(arguments);
    },
    columns: [
        { header: "编号", dataIndex: 'code' },
        { header: "中文名", dataIndex: 'substanceCnName' },
        { header: "英文名", dataIndex: 'substanceEnName' },
        { header: "分子式", dataIndex: 'substanceFormula' },
        { header: "分子量", dataIndex: 'substanceMolecularWeight' }
    ]
});
